<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen"/>
</head>
<body>
<form name="accountBean" id="accountBean" method="POST" action="login" onsubmit="return sublim()">

    <p><label>Please enter your username and password.</label></p>
    <p>
        <label for="username">Username:&nbsp</label><input class="sp" type="text" name="username" id="username" value="j2ee"/>
        <br/>
<!--    使用th:text进行取值操作-->
<!--    有三种取法-->
        <div th:if="${logMsg!=null}">
            <p th:text="${logMsg}"></p>
        </div>
        <br/>
        <label>Password:&nbsp</label><input class="sp" type="password" name="password" value="j2ee"/>
        <br/>
        <input class="sp" type="text" value="" id ="text">
        <canvas id="canvas" width="100" height="43" onclick="dj()"
                style="border: 1px solid #ccc;
                    border-radius: 5px;position: relative;top:15px;left:10px;"></canvas>
    </p>
    <input type="submit" value="Login"/>

</form>
</body>
</html>